Further simplify which-key--pseudo-key
authorJustin Burkett <justin@burkett.cc>
Wed, 16 Dec 2020 17:20:14 +0000 (12:20 -0500)
committerJustin Burkett <justin@burkett.cc>
Wed, 16 Dec 2020 17:20:14 +0000 (12:20 -0500)
which-key.el

index b2635ea6ad9fe91026e7ee2fbd77b131eae693d7..ba3efe3e8a3cb0e2a85cf665e79a7adfa62f3d36 100644 (file)
@@ -1596,7 +1596,7 @@ which are strings. KEY is of the form produced by `key-binding'."
   "Replace the last key in the sequence KEY by a special symbol
 in order for which-key to allow looking up a description for the key."
   (let ((seq (listify-key-sequence key)))
-    (vconcat (or prefix (butlast seq)) (vector 'which-key (last seq)))))
+    (vconcat (or prefix (butlast seq)) [which-key] (last seq))))
 
 (defun which-key--maybe-get-prefix-title (keys)
   "KEYS is a string produced by `key-description'.